package com.springdatecrm.web.repository;

import com.springdatecrm.web.entity.User;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.List;

public interface UserRepository extends JpaRepository<User,Long>, JpaSpecificationExecutor<User> {
    //根据用户名查询用户
    public User findUserByUsrName(String usrName);
    public List<User> findByUsrNameAndUsrPassword(String usrName, String usrPassword);
    public List<User> findAll();
    //根据用户id查询用户
    public User findByUsrId(Long usrId);
}
